package com.shopx.base.exception;

/**
 * @author Jason Mars
 * @create 2018-05-24 12:28
 **/
public class OriginException extends RuntimeException {
  private static final long serialVersionUID = -6511395689233393541L;
  private String statusCode; // 异常对应的返回码
  private String statusDesc;

  public OriginException() {
    super();
  }

  public OriginException(String statusCode, String statusDesc) {
    super(statusCode);
    this.statusCode = statusCode;
    this.statusDesc = statusDesc;
  }

  public OriginException(String statusDesc) {
    super(statusDesc);
    this.statusDesc = statusDesc;
  }

  public OriginException(String messageCode, Throwable e) {
    super(e);
    this.statusCode = messageCode;
  }

  public String getStatusCode() {
    return statusCode;
  }

  public void setStatusCode(String statusCode) {
    this.statusCode = statusCode;
  }

  public String getStatusDesc() {
    return statusDesc;
  }

  public void setStatusDesc(String statusDesc) {
    this.statusDesc = statusDesc;
  }
}
